/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;

/** Generated Model for hrm_order
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_hrm_order extends PO implements I_hrm_order, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130711L;

    /** the default Constructor */
    public X_hrm_order(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_hrm_order (Properties ctx, int hrm_order_ID, String trxName)
    {
      super (ctx, hrm_order_ID, trxName);
      /** if (hrm_order_ID == 0)
        {
			setBase (null);
			setDateFrom (new Timestamp( System.currentTimeMillis() ));
			sethrm_archive (false);
// N
			sethrm_bonustype (null);
// 4
			sethrm_number (null);
			sethrm_order_ID (0);
			sethrm_ordertype (null);
			sethrm_wageRate_ID (0);
// 1
			setName (null);
			setStartDate (new Timestamp( System.currentTimeMillis() ));
        } */
    }

    /** Load Constructor */
    public X_hrm_order (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_hrm_order[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set Amount.
		@param Amount 
		Amount in a defined currency
	  */
	public void setAmount (BigDecimal Amount)
	{
		set_Value (COLUMNNAME_Amount, Amount);
	}

	/** Get Amount.
		@return Amount in a defined currency
	  */
	public BigDecimal getAmount () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Base.
		@param Base 
		Calculation Base
	  */
	public void setBase (String Base)
	{
		set_Value (COLUMNNAME_Base, Base);
	}

	/** Get Base.
		@return Calculation Base
	  */
	public String getBase () 
	{
		return (String)get_Value(COLUMNNAME_Base);
	}

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Date From.
		@param DateFrom 
		Starting date for a range
	  */
	public void setDateFrom (Timestamp DateFrom)
	{
		set_Value (COLUMNNAME_DateFrom, DateFrom);
	}

	/** Get Date From.
		@return Starting date for a range
	  */
	public Timestamp getDateFrom () 
	{
		return (Timestamp)get_Value(COLUMNNAME_DateFrom);
	}

	/** Set End Date.
		@param EndDate 
		Last effective date (inclusive)
	  */
	public void setEndDate (Timestamp EndDate)
	{
		set_Value (COLUMNNAME_EndDate, EndDate);
	}

	/** Get End Date.
		@return Last effective date (inclusive)
	  */
	public Timestamp getEndDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_EndDate);
	}

	/** Set End Time.
		@param EndTime 
		End of the time span
	  */
	public void setEndTime (Timestamp EndTime)
	{
		set_Value (COLUMNNAME_EndTime, EndTime);
	}

	/** Get End Time.
		@return End of the time span
	  */
	public Timestamp getEndTime () 
	{
		return (Timestamp)get_Value(COLUMNNAME_EndTime);
	}

	/** Set hrm_archive.
		@param hrm_archive hrm_archive	  */
	public void sethrm_archive (boolean hrm_archive)
	{
		set_Value (COLUMNNAME_hrm_archive, Boolean.valueOf(hrm_archive));
	}

	/** Get hrm_archive.
		@return hrm_archive	  */
	public boolean ishrm_archive () 
	{
		Object oo = get_Value(COLUMNNAME_hrm_archive);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set hrm_average.
		@param hrm_average hrm_average	  */
	public void sethrm_average (BigDecimal hrm_average)
	{
		set_Value (COLUMNNAME_hrm_average, hrm_average);
	}

	/** Get hrm_average.
		@return hrm_average	  */
	public BigDecimal gethrm_average () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_hrm_average);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** hrm_bonustype AD_Reference_ID=1000083 */
	public static final int HRM_BONUSTYPE_AD_Reference_ID=1000083;
	/** year = 1 */
	public static final String HRM_BONUSTYPE_Year = "1";
	/** quarter = 2 */
	public static final String HRM_BONUSTYPE_Quarter = "2";
	/** national = 3 */
	public static final String HRM_BONUSTYPE_National = "3";
	/** other = 4 */
	public static final String HRM_BONUSTYPE_Other = "4";
	/** unsheduled = 5 */
	public static final String HRM_BONUSTYPE_Unsheduled = "5";
	/** Set hrm_bonustype.
		@param hrm_bonustype hrm_bonustype	  */
	public void sethrm_bonustype (String hrm_bonustype)
	{

		set_Value (COLUMNNAME_hrm_bonustype, hrm_bonustype);
	}

	/** Get hrm_bonustype.
		@return hrm_bonustype	  */
	public String gethrm_bonustype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_bonustype);
	}

	/** hrm_businesstriptype AD_Reference_ID=1000026 */
	public static final int HRM_BUSINESSTRIPTYPE_AD_Reference_ID=1000026;
	/** common business trip = 1 */
	public static final String HRM_BUSINESSTRIPTYPE_CommonBusinessTrip = "1";
	/** education business trip = 2 */
	public static final String HRM_BUSINESSTRIPTYPE_EducationBusinessTrip = "2";
	/** changes business trip = 3 */
	public static final String HRM_BUSINESSTRIPTYPE_ChangesBusinessTrip = "3";
	/** Set business trip type.
		@param hrm_businesstriptype business trip type	  */
	public void sethrm_businesstriptype (String hrm_businesstriptype)
	{

		set_Value (COLUMNNAME_hrm_businesstriptype, hrm_businesstriptype);
	}

	/** Get business trip type.
		@return business trip type	  */
	public String gethrm_businesstriptype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_businesstriptype);
	}

	/** hrm_compensationtype AD_Reference_ID=1000099 */
	public static final int HRM_COMPENSATIONTYPE_AD_Reference_ID=1000099;
	/** compensation = 1 */
	public static final String HRM_COMPENSATIONTYPE_Compensation = "1";
	/** noncompensation = 2 */
	public static final String HRM_COMPENSATIONTYPE_Noncompensation = "2";
	/** dissmissal = 3 */
	public static final String HRM_COMPENSATIONTYPE_Dissmissal = "3";
	/** trip = 4 */
	public static final String HRM_COMPENSATIONTYPE_Trip = "4";
	/** profit = 5 */
	public static final String HRM_COMPENSATIONTYPE_Profit = "5";
	/** Set hrm_compensationtype.
		@param hrm_compensationtype hrm_compensationtype	  */
	public void sethrm_compensationtype (String hrm_compensationtype)
	{

		set_Value (COLUMNNAME_hrm_compensationtype, hrm_compensationtype);
	}

	/** Get hrm_compensationtype.
		@return hrm_compensationtype	  */
	public String gethrm_compensationtype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_compensationtype);
	}

	/** hrm_contractterminationtype AD_Reference_ID=1000003 */
	public static final int HRM_CONTRACTTERMINATIONTYPE_AD_Reference_ID=1000003;
	/** by agreement = 1 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_ByAgreement = "1";
	/** initiative employee = 2 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_InitiativeEmployee = "2";
	/** reduction of = 3 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_ReductionOf = "3";
	/** death of employee = 4 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_DeathOfEmployee = "4";
	/** termination of employment = 5 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_TerminationOfEmployment = "5";
	/** employee's refusal = 6 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_EmployeeSRefusal = "6";
	/** transition to an elected work = 7 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_TransitionToAnElectedWork = "7";
	/** breach of employment contract = 8 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_BreachOfEmploymentContract = "8";
	/** grounds stipulated in the employment contract = 9 */
	public static final String HRM_CONTRACTTERMINATIONTYPE_GroundsStipulatedInTheEmploymentContract = "9";
	/** Set hrm_contractterminationtype.
		@param hrm_contractterminationtype hrm_contractterminationtype	  */
	public void sethrm_contractterminationtype (String hrm_contractterminationtype)
	{

		set_Value (COLUMNNAME_hrm_contractterminationtype, hrm_contractterminationtype);
	}

	/** Get hrm_contractterminationtype.
		@return hrm_contractterminationtype	  */
	public String gethrm_contractterminationtype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_contractterminationtype);
	}

	/** Set hrm_days.
		@param hrm_days hrm_days	  */
	public void sethrm_days (int hrm_days)
	{
		set_Value (COLUMNNAME_hrm_days, Integer.valueOf(hrm_days));
	}

	/** Get hrm_days.
		@return hrm_days	  */
	public int gethrm_days () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_days);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_deductionType AD_Reference_ID=1000123 */
	public static final int HRM_DEDUCTIONTYPE_AD_Reference_ID=1000123;
	/** IMPREST_TRIP = IMPREST_TRIP */
	public static final String HRM_DEDUCTIONTYPE_IMPREST_TRIP = "IMPREST_TRIP";
	/** CHARITY = CHARITY */
	public static final String HRM_DEDUCTIONTYPE_CHARITY = "CHARITY";
	/** EDUCATION = EDUCATION */
	public static final String HRM_DEDUCTIONTYPE_EDUCATION = "EDUCATION";
	/** OTHER = OTHER */
	public static final String HRM_DEDUCTIONTYPE_OTHER = "OTHER";
	/** MEDICARE = MEDICARE */
	public static final String HRM_DEDUCTIONTYPE_MEDICARE = "MEDICARE";
	/** Set hrm_deductionType.
		@param hrm_deductionType hrm_deductionType	  */
	public void sethrm_deductionType (String hrm_deductionType)
	{

		set_Value (COLUMNNAME_hrm_deductionType, hrm_deductionType);
	}

	/** Get hrm_deductionType.
		@return hrm_deductionType	  */
	public String gethrm_deductionType () 
	{
		return (String)get_Value(COLUMNNAME_hrm_deductionType);
	}

	public org.eevolution.model.I_HR_Department gethrm_departmentFrom() throws RuntimeException
    {
		return (org.eevolution.model.I_HR_Department)MTable.get(getCtx(), org.eevolution.model.I_HR_Department.Table_Name)
			.getPO(gethrm_departmentFrom_ID(), get_TrxName());	}

	/** Set hrm_departmentFrom_ID.
		@param hrm_departmentFrom_ID hrm_departmentFrom_ID	  */
	public void sethrm_departmentFrom_ID (int hrm_departmentFrom_ID)
	{
		if (hrm_departmentFrom_ID < 1) 
			set_Value (COLUMNNAME_hrm_departmentFrom_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_departmentFrom_ID, Integer.valueOf(hrm_departmentFrom_ID));
	}

	/** Get hrm_departmentFrom_ID.
		@return hrm_departmentFrom_ID	  */
	public int gethrm_departmentFrom_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_departmentFrom_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.eevolution.model.I_HR_Department gethrm_departmentTo() throws RuntimeException
    {
		return (org.eevolution.model.I_HR_Department)MTable.get(getCtx(), org.eevolution.model.I_HR_Department.Table_Name)
			.getPO(gethrm_departmentTo_ID(), get_TrxName());	}

	/** Set hrm_departmentTo_ID.
		@param hrm_departmentTo_ID hrm_departmentTo_ID	  */
	public void sethrm_departmentTo_ID (int hrm_departmentTo_ID)
	{
		if (hrm_departmentTo_ID < 1) 
			set_Value (COLUMNNAME_hrm_departmentTo_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_departmentTo_ID, Integer.valueOf(hrm_departmentTo_ID));
	}

	/** Get hrm_departmentTo_ID.
		@return hrm_departmentTo_ID	  */
	public int gethrm_departmentTo_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_departmentTo_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set hrm_fromjob_ID.
		@param hrm_fromjob_ID hrm_fromjob_ID	  */
	public void sethrm_fromjob_ID (int hrm_fromjob_ID)
	{
		if (hrm_fromjob_ID < 1) 
			set_Value (COLUMNNAME_hrm_fromjob_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_fromjob_ID, Integer.valueOf(hrm_fromjob_ID));
	}

	/** Get hrm_fromjob_ID.
		@return hrm_fromjob_ID	  */
	public int gethrm_fromjob_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_fromjob_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_materialaidtype AD_Reference_ID=1000069 */
	public static final int HRM_MATERIALAIDTYPE_AD_Reference_ID=1000069;
	/** interment = 1 */
	public static final String HRM_MATERIALAIDTYPE_Interment = "1";
	/** birth = 2 */
	public static final String HRM_MATERIALAIDTYPE_Birth = "2";
	/** marriage = 3 */
	public static final String HRM_MATERIALAIDTYPE_Marriage = "3";
	/** curing = 4 */
	public static final String HRM_MATERIALAIDTYPE_Curing = "4";
	/** emergency = 5 */
	public static final String HRM_MATERIALAIDTYPE_Emergency = "5";
	/** pension = 6 */
	public static final String HRM_MATERIALAIDTYPE_Pension = "6";
	/** Set hrm_materialaidtype.
		@param hrm_materialaidtype hrm_materialaidtype	  */
	public void sethrm_materialaidtype (String hrm_materialaidtype)
	{

		set_Value (COLUMNNAME_hrm_materialaidtype, hrm_materialaidtype);
	}

	/** Get hrm_materialaidtype.
		@return hrm_materialaidtype	  */
	public String gethrm_materialaidtype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_materialaidtype);
	}

	/** Set hrm_mrp.
		@param hrm_mrp hrm_mrp	  */
	public void sethrm_mrp (BigDecimal hrm_mrp)
	{
		set_Value (COLUMNNAME_hrm_mrp, hrm_mrp);
	}

	/** Get hrm_mrp.
		@return hrm_mrp	  */
	public BigDecimal gethrm_mrp () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_hrm_mrp);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set hrm_number.
		@param hrm_number hrm_number	  */
	public void sethrm_number (String hrm_number)
	{
		set_Value (COLUMNNAME_hrm_number, hrm_number);
	}

	/** Get hrm_number.
		@return hrm_number	  */
	public String gethrm_number () 
	{
		return (String)get_Value(COLUMNNAME_hrm_number);
	}

	/** Set hrm_order.
		@param hrm_order_ID hrm_order	  */
	public void sethrm_order_ID (int hrm_order_ID)
	{
		if (hrm_order_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_order_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_order_ID, Integer.valueOf(hrm_order_ID));
	}

	/** Get hrm_order.
		@return hrm_order	  */
	public int gethrm_order_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_order_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_hrm_order gethrm_orderref() throws RuntimeException
    {
		return (I_hrm_order)MTable.get(getCtx(), I_hrm_order.Table_Name)
			.getPO(gethrm_orderref_ID(), get_TrxName());	}

	/** Set hrm_orderref_ID.
		@param hrm_orderref_ID hrm_orderref_ID	  */
	public void sethrm_orderref_ID (int hrm_orderref_ID)
	{
		if (hrm_orderref_ID < 1) 
			set_Value (COLUMNNAME_hrm_orderref_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_orderref_ID, Integer.valueOf(hrm_orderref_ID));
	}

	/** Get hrm_orderref_ID.
		@return hrm_orderref_ID	  */
	public int gethrm_orderref_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_orderref_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_ordertype AD_Reference_ID=1000006 */
	public static final int HRM_ORDERTYPE_AD_Reference_ID=1000006;
	/** hiring = 1 */
	public static final String HRM_ORDERTYPE_Hiring = "1";
	/** moving = 2 */
	public static final String HRM_ORDERTYPE_Moving = "2";
	/** business trip = 3 */
	public static final String HRM_ORDERTYPE_BusinessTrip = "3";
	/** vacation = 4 */
	public static final String HRM_ORDERTYPE_Vacation = "4";
	/** dismissal = 5 */
	public static final String HRM_ORDERTYPE_Dismissal = "5";
	/** stoppage of wages = 6 */
	public static final String HRM_ORDERTYPE_StoppageOfWages = "6";
	/** premium = 7 */
	public static final String HRM_ORDERTYPE_Premium = "7";
	/** penalty = 8 */
	public static final String HRM_ORDERTYPE_Penalty = "8";
	/** assignment = 9 */
	public static final String HRM_ORDERTYPE_Assignment = "9";
	/** review = 10 */
	public static final String HRM_ORDERTYPE_Review = "10";
	/** overtime = 11 */
	public static final String HRM_ORDERTYPE_Overtime = "11";
	/** freeday = 12 */
	public static final String HRM_ORDERTYPE_Freeday = "12";
	/** materialaid = 13 */
	public static final String HRM_ORDERTYPE_Materialaid = "13";
	/** boss trip = 15 */
	public static final String HRM_ORDERTYPE_BossTrip = "15";
	/** boss vacation = 16 */
	public static final String HRM_ORDERTYPE_BossVacation = "16";	
	/** vacation add = 17 */
	public static final String HRM_ORDERTYPE_Vacationadd = "17";
	
	/** Set hrm_ordertype.
		@param hrm_ordertype hrm_ordertype	  */
	public void sethrm_ordertype (String hrm_ordertype)
	{

		set_Value (COLUMNNAME_hrm_ordertype, hrm_ordertype);
	}

	/** Get hrm_ordertype.
		@return hrm_ordertype	  */
	public String gethrm_ordertype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_ordertype);
	}

	/** hrm_penaltyType AD_Reference_ID=1000161 */
	public static final int HRM_PENALTYTYPE_AD_Reference_ID=1000161;
	/** Remark = remark */
	public static final String HRM_PENALTYTYPE_Remark = "remark";
	/** Reprimand = reprimand */
	public static final String HRM_PENALTYTYPE_Reprimand = "reprimand";
	/** severe reprimand = SevereReprimand */
	public static final String HRM_PENALTYTYPE_SevereReprimand = "SevereReprimand";
	/** termination of an contract = termContract */
	public static final String HRM_PENALTYTYPE_TerminationOfAnContract = "termContract";
	/** Set hrm_penaltyType.
		@param hrm_penaltyType hrm_penaltyType	  */
	public void sethrm_penaltyType (String hrm_penaltyType)
	{

		set_Value (COLUMNNAME_hrm_penaltyType, hrm_penaltyType);
	}

	/** Get hrm_penaltyType.
		@return hrm_penaltyType	  */
	public String gethrm_penaltyType () 
	{
		return (String)get_Value(COLUMNNAME_hrm_penaltyType);
	}

	/** Set hrm_percent.
		@param hrm_percent hrm_percent	  */
	public void sethrm_percent (BigDecimal hrm_percent)
	{
		set_Value (COLUMNNAME_hrm_percent, hrm_percent);
	}

	/** Get hrm_percent.
		@return hrm_percent	  */
	public BigDecimal gethrm_percent () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_hrm_percent);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set hrm_period.
		@param hrm_period hrm_period	  */
	public void sethrm_period (String hrm_period)
	{
		set_Value (COLUMNNAME_hrm_period, hrm_period);
	}

	/** Get hrm_period.
		@return hrm_period	  */
	public String gethrm_period () 
	{
		return (String)get_Value(COLUMNNAME_hrm_period);
	}

	/** Set hrm_purpose.
		@param hrm_purpose hrm_purpose	  */
	public void sethrm_purpose (String hrm_purpose)
	{
		set_Value (COLUMNNAME_hrm_purpose, hrm_purpose);
	}

	/** Get hrm_purpose.
		@return hrm_purpose	  */
	public String gethrm_purpose () 
	{
		return (String)get_Value(COLUMNNAME_hrm_purpose);
	}

	/** Set hrm_reason.
		@param hrm_reason hrm_reason	  */
	public void sethrm_reason (String hrm_reason)
	{
		set_Value (COLUMNNAME_hrm_reason, hrm_reason);
	}

	/** Get hrm_reason.
		@return hrm_reason	  */
	public String gethrm_reason () 
	{
		return (String)get_Value(COLUMNNAME_hrm_reason);
	}

	/** Set hrm_tojob_ID.
		@param hrm_tojob_ID hrm_tojob_ID	  */
	public void sethrm_tojob_ID (int hrm_tojob_ID)
	{
		if (hrm_tojob_ID < 1) 
			set_Value (COLUMNNAME_hrm_tojob_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_tojob_ID, Integer.valueOf(hrm_tojob_ID));
	}

	/** Get hrm_tojob_ID.
		@return hrm_tojob_ID	  */
	public int gethrm_tojob_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_tojob_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_transporttype AD_Reference_ID=1000004 */
	public static final int HRM_TRANSPORTTYPE_AD_Reference_ID=1000004;
	/** air = 1 */
	public static final String HRM_TRANSPORTTYPE_Air = "1";
	/** auto = 2 */
	public static final String HRM_TRANSPORTTYPE_Auto = "2";
	/** rail = 3 */
	public static final String HRM_TRANSPORTTYPE_Rail = "3";
	/** water = 4 */
	public static final String HRM_TRANSPORTTYPE_Water = "4";
	/** Set hrm_transporttype.
		@param hrm_transporttype hrm_transporttype	  */
	public void sethrm_transporttype (String hrm_transporttype)
	{

		set_Value (COLUMNNAME_hrm_transporttype, hrm_transporttype);
	}

	/** Get hrm_transporttype.
		@return hrm_transporttype	  */
	public String gethrm_transporttype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_transporttype);
	}

	public I_hrm_trialperiod gethrm_trialperiod() throws RuntimeException
    {
		return (I_hrm_trialperiod)MTable.get(getCtx(), I_hrm_trialperiod.Table_Name)
			.getPO(gethrm_trialperiod_ID(), get_TrxName());	}

	/** Set hrm_trialperiod.
		@param hrm_trialperiod_ID hrm_trialperiod	  */
	public void sethrm_trialperiod_ID (int hrm_trialperiod_ID)
	{
		if (hrm_trialperiod_ID < 1) 
			set_Value (COLUMNNAME_hrm_trialperiod_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_trialperiod_ID, Integer.valueOf(hrm_trialperiod_ID));
	}

	/** Get hrm_trialperiod.
		@return hrm_trialperiod	  */
	public int gethrm_trialperiod_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_trialperiod_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_hrm_wageRate gethrm_wageRate() throws RuntimeException
    {
		return (I_hrm_wageRate)MTable.get(getCtx(), I_hrm_wageRate.Table_Name)
			.getPO(gethrm_wageRate_ID(), get_TrxName());	}

	/** Set wage-rate.
		@param hrm_wageRate_ID wage-rate	  */
	public void sethrm_wageRate_ID (int hrm_wageRate_ID)
	{
		if (hrm_wageRate_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_hrm_wageRate_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_hrm_wageRate_ID, Integer.valueOf(hrm_wageRate_ID));
	}

	/** Get wage-rate.
		@return wage-rate	  */
	public int gethrm_wageRate_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_wageRate_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_City gethrm_whereto() throws RuntimeException
    {
		return (org.compiere.model.I_C_City)MTable.get(getCtx(), org.compiere.model.I_C_City.Table_Name)
			.getPO(gethrm_whereto_ID(), get_TrxName());	}

	/** Set hrm_whereto_ID.
		@param hrm_whereto_ID hrm_whereto_ID	  */
	public void sethrm_whereto_ID (int hrm_whereto_ID)
	{
		if (hrm_whereto_ID < 1) 
			set_Value (COLUMNNAME_hrm_whereto_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_whereto_ID, Integer.valueOf(hrm_whereto_ID));
	}

	/** Get hrm_whereto_ID.
		@return hrm_whereto_ID	  */
	public int gethrm_whereto_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_whereto_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_City gethrm_whereto1() throws RuntimeException
    {
		return (org.compiere.model.I_C_City)MTable.get(getCtx(), org.compiere.model.I_C_City.Table_Name)
			.getPO(gethrm_whereto1_ID(), get_TrxName());	}

	/** Set hrm_whereto1_ID.
		@param hrm_whereto1_ID hrm_whereto1_ID	  */
	public void sethrm_whereto1_ID (int hrm_whereto1_ID)
	{
		if (hrm_whereto1_ID < 1) 
			set_Value (COLUMNNAME_hrm_whereto1_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_whereto1_ID, Integer.valueOf(hrm_whereto1_ID));
	}

	/** Get hrm_whereto1_ID.
		@return hrm_whereto1_ID	  */
	public int gethrm_whereto1_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_whereto1_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_City gethrm_whereto2() throws RuntimeException
    {
		return (org.compiere.model.I_C_City)MTable.get(getCtx(), org.compiere.model.I_C_City.Table_Name)
			.getPO(gethrm_whereto2_ID(), get_TrxName());	}

	/** Set hrm_whereto2_ID.
		@param hrm_whereto2_ID hrm_whereto2_ID	  */
	public void sethrm_whereto2_ID (int hrm_whereto2_ID)
	{
		if (hrm_whereto2_ID < 1) 
			set_Value (COLUMNNAME_hrm_whereto2_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_whereto2_ID, Integer.valueOf(hrm_whereto2_ID));
	}

	/** Get hrm_whereto2_ID.
		@return hrm_whereto2_ID	  */
	public int gethrm_whereto2_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_whereto2_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_City gethrm_whereto3() throws RuntimeException
    {
		return (org.compiere.model.I_C_City)MTable.get(getCtx(), org.compiere.model.I_C_City.Table_Name)
			.getPO(gethrm_whereto3_ID(), get_TrxName());	}

	/** Set hrm_whereto3_ID.
		@param hrm_whereto3_ID hrm_whereto3_ID	  */
	public void sethrm_whereto3_ID (int hrm_whereto3_ID)
	{
		if (hrm_whereto3_ID < 1) 
			set_Value (COLUMNNAME_hrm_whereto3_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_whereto3_ID, Integer.valueOf(hrm_whereto3_ID));
	}

	/** Get hrm_whereto3_ID.
		@return hrm_whereto3_ID	  */
	public int gethrm_whereto3_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_whereto3_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_City gethrm_whereto4() throws RuntimeException
    {
		return (org.compiere.model.I_C_City)MTable.get(getCtx(), org.compiere.model.I_C_City.Table_Name)
			.getPO(gethrm_whereto4_ID(), get_TrxName());	}

	/** Set hrm_whereto4_ID.
		@param hrm_whereto4_ID hrm_whereto4_ID	  */
	public void sethrm_whereto4_ID (int hrm_whereto4_ID)
	{
		if (hrm_whereto4_ID < 1) 
			set_Value (COLUMNNAME_hrm_whereto4_ID, null);
		else 
			set_Value (COLUMNNAME_hrm_whereto4_ID, Integer.valueOf(hrm_whereto4_ID));
	}

	/** Get hrm_whereto4_ID.
		@return hrm_whereto4_ID	  */
	public int gethrm_whereto4_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_hrm_whereto4_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** hrm_workleavetype AD_Reference_ID=1000005 */
	public static final int HRM_WORKLEAVETYPE_AD_Reference_ID=1000005;
	/** norm  vacation  = 1 */
	public static final String HRM_WORKLEAVETYPE_NormVacation = "1";
	/** pregnancy = 2 */
	public static final String HRM_WORKLEAVETYPE_Pregnancy = "2";
	/** leave without salary = 3 */
	public static final String HRM_WORKLEAVETYPE_LeaveWithoutSalary = "3";
	/** education leave = 4 */
	public static final String HRM_WORKLEAVETYPE_EducationLeave = "4";
	/** leave to care for a child = 5 */
	public static final String HRM_WORKLEAVETYPE_LeaveToCareForAChild = "5";
	/** Review of the holidays = 6 */
	public static final String HRM_WORKLEAVETYPE_ReviewOfTheHolidays = "6";
	/** non norm  vacation  = 7 */
	public static final String HRM_WORKLEAVETYPE_NonNormVacation = "7";
	/** short vocation = 8 */
	public static final String HRM_WORKLEAVETYPE_ShortVocation = "8";
	/** Set hrm_workleavetype.
		@param hrm_workleavetype hrm_workleavetype	  */
	public void sethrm_workleavetype (String hrm_workleavetype)
	{

		set_Value (COLUMNNAME_hrm_workleavetype, hrm_workleavetype);
	}

	/** Get hrm_workleavetype.
		@return hrm_workleavetype	  */
	public String gethrm_workleavetype () 
	{
		return (String)get_Value(COLUMNNAME_hrm_workleavetype);
	}

	/** Set Name.
		@param Name 
		Alphanumeric identifier of the entity
	  */
	public void setName (String Name)
	{
		set_Value (COLUMNNAME_Name, Name);
	}

	/** Get Name.
		@return Alphanumeric identifier of the entity
	  */
	public String getName () 
	{
		return (String)get_Value(COLUMNNAME_Name);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), getName());
    }

	/** Set Processed.
		@param Processed 
		The document has been processed
	  */
	public void setProcessed (boolean Processed)
	{
		set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
	}

	/** Get Processed.
		@return The document has been processed
	  */
	public boolean isProcessed () 
	{
		Object oo = get_Value(COLUMNNAME_Processed);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set Process Now.
		@param Processing Process Now	  */
	public void setProcessing (boolean Processing)
	{
		set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
	}

	/** Get Process Now.
		@return Process Now	  */
	public boolean isProcessing () 
	{
		Object oo = get_Value(COLUMNNAME_Processing);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set Start Date.
		@param StartDate 
		First effective day (inclusive)
	  */
	public void setStartDate (Timestamp StartDate)
	{
		set_Value (COLUMNNAME_StartDate, StartDate);
	}

	/** Get Start Date.
		@return First effective day (inclusive)
	  */
	public Timestamp getStartDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_StartDate);
	}

	/** Set Start Time.
		@param StartTime 
		Time started
	  */
	public void setStartTime (Timestamp StartTime)
	{
		set_Value (COLUMNNAME_StartTime, StartTime);
	}

	/** Get Start Time.
		@return Time started
	  */
	public Timestamp getStartTime () 
	{
		return (Timestamp)get_Value(COLUMNNAME_StartTime);
	}
}